Skip to content

Fix temp file creation broken by tmp 0.2.x upgrade#707

Merged
JamieMagee merged 1 commit intomasterfrom
fix/tmp-template-option-compat
Feb 13, 2026
Merged

Fix temp file creation broken by tmp 0.2.x upgrade#707
JamieMagee merged 1 commit intomasterfrom
fix/tmp-template-option-compat

Conversation

@JamieMagee
Copy link
Contributor

The tmp upgrade in #670 (0.1.0 → 0.2.5) broke temp file creation. The 0.2.x version validates that template paths are relative to the OS temp directory, so any TEMPDIR config that isn't literally /tmp/ causes createTempFile and createTempDir to throw:

Error: template option must be relative to "/tmp", found "../tempdir/cd-XXXXXX"

This swaps the template option for dir + prefix, which is the correct 0.2.x API for controlling where temp files go. Same behavior, no path validation issues.

Fixes #705

@JamieMagee JamieMagee force-pushed the fix/tmp-template-option-compat branch from 779a7b4 to c252ece Compare February 13, 2026 23:03
@JamieMagee JamieMagee merged commit 074acc6 into master Feb 13, 2026
2 checks passed
@JamieMagee JamieMagee deleted the fix/tmp-template-option-compat branch February 13, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to harvest components

2 participants